﻿using EPiServer.Core;
using EPiServer.DataAbstraction;
using PageTypeBuilder;

namespace JoelAbrahamsson.FeedImport
{
    [PageType(AvailablePageTypes = new [] { typeof(SyndicationFeedItem) })]
    public class SyndicationFeedRoot : TypedPageData
    {
        [PageTypeProperty(Type = typeof(PropertyString))]
        public virtual string FeedUrl { get; set; }

        [PageTypeProperty(DefaultValue = "5", DefaultValueType = DefaultValueType.Value)]
        public virtual int NumberOfItems { get; set; }
    }
}